package com.jiayou.tools;

import java.awt.*;

public class Constclass {
    public static final int HEIGHT = 800+40;   //初级游戏的高度
    public static final int WEIGHT = 1400;   //初级游戏的宽度
    private static Dimension screensize   ;  //获取配置的对象

    //子弹
    public static final int UP     = 0;
    public static final int DOWN   = 1;
    public static final int LEFT   = 2;
    public static final int RIGHT  = 3;



    //获取屏幕的高度
    public static int getHeight() {
        screensize  =   Toolkit.getDefaultToolkit().getScreenSize();
        return (int)screensize.getHeight();
    }
    //获取屏幕的宽度
    public static int getwight() {
        screensize  =   Toolkit.getDefaultToolkit().getScreenSize();
        return (int)screensize.getWidth();
    }
}